package com.qianfeng.pojo;

import java.io.Serializable;
 //如果实体类不implements Serializable就会显示未序列化异常（redis中）
public class Dept implements Serializable {//java.io.InvalidClassException: com.qianfeng.pojo.Dept; class invalid for deserialization

	private int id;
	private String name;
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	@Override
	public String toString() {
		return "Dept [id=" + id + ", name=" + name + "]";
	}
	
}
